<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>小练习</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style: none
        }

        /*img {display: block}*/

        a {
            text-decoration: none;
            color: #666;
        }

        h1, h2, h3 {
            font-size: 16px;
        }

        .l {
            float: left;
        }

        .r {
            float: right;
        }

        .clear:after {
            content: '';
            display: block;
            clear: both;
        }

        #main {
            width: 600px;
            margin: 20px auto;
            border: 1px solid black;
        }

        #main .title {
            height: 23px;
            line-height: 23px;
            font-size: 12px;
            font-weight: bold;
            padding-left: 30px;
        }

        #main ul {

        }

        #main li {

        }

        #main .pic {

        }

        #main .content {
            width: 330px;
            margin-left: 10px;
        }

    </style>
</head>
<body>

<div id="main">
    <h2 class="title">外媒评论精选</h2>
    <ul>
        <li class="clear">
            <div class="pic l">
                <a href="#">
                    <img src="imgs/xs1.jpg" alt="">
                </a>
            </div>
            <div class="content l">
                <h2>测试标题</h2>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit.Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                    <a href="#">[详情]</a>
                </p>
            </div>
        </li>
        <li class="clear">
            <div class="pic l">
                <a href="#">
                    <img src="imgs/xs1.jpg" alt="">
                </a>
            </div>
            <div class="content l">
                <h2>测试标题</h2>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit.Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                    <a href="#">[详情]</a>
                </p>
            </div>
        </li>
        <li class="clear">
            <div class="pic l">
                <a href="#">
                    <img src="imgs/xs1.jpg" alt="">
                </a>
            </div>
            <div class="content l">
                <h2>测试标题</h2>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit.Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                    <a href="#">[详情]</a>
                </p>
            </div>
        </li>
    </ul>
</div>

</body>
</html>